package com.boot.feign;

import com.boot.business.PurchaseDTO;
import com.boot.order.OrderDTO;
import com.boot.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "cloud-order")
public interface OrderFeign {
    @PostMapping("/order/createOrder")
    Result createOrder(@RequestBody PurchaseDTO purchaseDTO);
}
